<?php

use Illuminate\Database\Seeder;

class CommentTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('comments')->insert([
            [
                'author_id'=>rand(1,5),
                'comment'=>'张三'
            ],
            [
                'author_id'=>rand(1,5),
                'comment'=>'赵三'
            ],
            [
                'author_id'=>rand(1,5),
                'comment'=>'王五'
            ]
        ]);
    }
}
